]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mixer-control: Check for invalid input
authorGuido Günther <agx@sigxcpu.org>
Sun, 4 Jan 2026 16:39:03 +0000 (17:39 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Jan 2026 13:25:18 +0000 (13:25 +0000)
With pipewire 1.5.84 there can be a zombie default-source as the
current profile can't have a stream, see

https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/5053#note_3256202

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/1126514
Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4

Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Check-for-invalid-input.patch

subprojects/gvc/gvc-mixer-control.c

index b45f15a4f1133f79b5c689a2bc1075324fd40b8d..251f78a240426d217282b0e1f78988d3422f076f 100644 (file)
@@ -980,11 +980,14 @@ _set_default_source (GvcMixerControl *control,
                                new_id);
 
                 input = gvc_mixer_control_lookup_device_from_stream (control, stream);
-
-                g_signal_emit (G_OBJECT (control),
-                               signals[ACTIVE_INPUT_UPDATE],
-                               0,
-                               gvc_mixer_ui_device_get_id (input));
+                if (input) {
+                        g_signal_emit (G_OBJECT (control),
+                                       signals[ACTIVE_INPUT_UPDATE],
+                                       0,
+                                       gvc_mixer_ui_device_get_id (input));
+                } else {
+                        g_warning ("Can't find input for stream-id %d",new_id);
+                }
         }
 }